﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProyectoGrupo5.ClasesDominio.Postulante>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edición
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Editar datso del Postulante</h2>

    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CodigoPostulante) %>
            </div>
            <div class="editor-field">
                <%: Model.CodigoPostulante %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApellidoPaterno) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApellidoPaterno)%>
                <%: Html.ValidationMessageFor(model => model.ApellidoPaterno)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApellidoMaterno) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApellidoMaterno)%>
                <%: Html.ValidationMessageFor(model => model.ApellidoMaterno)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Sexo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Sexo)%>
                <%: Html.ValidationMessageFor(model => model.Sexo)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FechaNacimiento) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FechaNacimiento)%>
                <%: Html.ValidationMessageFor(model => model.FechaNacimiento)%>
            </div>

             <div class="editor-label">
                <%: Html.LabelFor(model => model.Correo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Correo) %>
                <%: Html.ValidationMessageFor(model => model.Correo) %>
            </div>

           <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar", "Index", "Home") %>
    </div>

</asp:Content>

